import * as fs from 'fs';
import { Console } from 'console';
export default class Logger extends Console {
  log(...args) {
    super.log(...args);
  }

  warn(...args) {
    super.warn(...args);
  }

  error(...args) {
    super.error(...args);
  }
}

const output = fs.createWriteStream('./stdout.log', { flags: 'a' });
export const logger = new Logger({ stdout: output, colorMode: true });
